@echo off
echo start 

%sml_tools%/thrift-0.9.0.exe -r --gen java %sml_source_root%/thriftScript/service/demoHello.thrift
echo complete generator source

rd %sml_java_source_root%\Service\src\main\java\com\sdw\sml\service\thriftgen /S /Q
echo complete delete soruce

move %sml_source_root%/thriftScript/gen-java/com/sdw/sml/service/thriftgen %sml_java_source_root%/Service/src/main/java/com/sdw/sml/service/thriftgen

echo complete move

rd %sml_source_root%\thriftScript\gen-java /S /Q

echo end